package edu.spec.pms.service.impl;

import edu.spec.pms.dao.iface.IUserRoleDao;
import edu.spec.pms.model.sys.UserRole;
import edu.spec.pms.service.iface.IUserRoleService;
import org.springframework.stereotype.Service;

import javax.inject.Inject;

@Service
public class UserRoleService implements IUserRoleService{

	@Inject
	private IUserRoleDao urDao;

	@Override
	public void add(UserRole ur) {
		urDao.add(ur);
	}

	@Override
	public void deleteByUserAndRole(Integer userId, Integer roleId) {
		urDao.deleteByUserAndRole(userId, roleId);
	}
}
